package com.linkage.util.config;

public class FlexiConfigBean {
	
	String queryName;
	String title;
	String name;
	String label;
	String value;
	String accesskey;
	String columnStr;
	
	public FlexiConfigBean()
	{
		this.queryName="";
	}
	public String getQueryName() {
		return queryName;
	}
	
	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}
	
	public String getTitle() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getTitle(queryName);
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getName() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getName(queryName);
	}
	
	
	public String getLabel() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getLabel(queryName);
	}
	
	
	public String getValue() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getValue(queryName);
	}
	
	
	public String getAccesskey() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getAccesskey(queryName);
	}
	
	public String getColumnStr() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getColumnStr(queryName);
	}
	
	public String getSearchListID() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getSearchListID(queryName);
	}
	
	public String getSearchTotalID() throws Exception {
		if(null==this.queryName || this.queryName.equals(""))
		{
			return null;
		}
		return FlexiConfig.getSearchTotalID(queryName);
	}
}
